﻿<%@ Page Language="C#" MasterPageFile="../MasterPages/StoreMaster.master" AutoEventWireup="true" CodeBehind="ContentList.aspx.cs" Inherits="Codagenic.Store.Presentation.Web.Pages.ContentList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div class="twelve columns omega">

        <h1><%= CurrentStorePage.Title %></h1>

        <asp:Repeater ID="rpContentItems" runat="server">
            <HeaderTemplate>
                <div class="row">
            </HeaderTemplate>
            <ItemTemplate>
                <h3><%# Eval("Title") %></h3>
                <p><%# ((DateTime)Eval("DateCreated")).ToString("d MMMM yyyy") %></p>
                <%# Truncate(Eval("Content").ToString(), 200) %>
                <p><a href="<%# Eval("Link") %>">Read more</a></p>
            </ItemTemplate>
            <FooterTemplate>
                </div>
            </FooterTemplate>
        </asp:Repeater>

    </div>

</asp:Content>
